package com.huangcy.gulimall.order.feign;

import com.huangcy.common.utils.R;
import com.huangcy.gulimall.order.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @program: gulimall
 * @description:
 * @author: huangcy
 * @create: 2022-09-07 11:04
 **/
@FeignClient("gulimall-ware")
public interface WmsFeignService {

    @PostMapping("/ware/waresku/hasStock")
    public R getSKuHasStock(@RequestBody List<Long> skuIds);

    // 获取运费
    @RequestMapping("/ware/wareinfo/fare")
    public R getFare(@RequestParam("addrId") Long addrId);

    @PostMapping("/ware/waresku/lock/order")
    public R orderLockStock(@RequestBody WareSkuLockVo vo);

}
